widget: Improve warning for negative size_allocate dimensions
authorTimm Bäder <mail@baedert.org>
Fri, 23 Feb 2018 09:27:35 +0000 (10:27 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 23 Feb 2018 09:47:19 +0000 (10:47 +0100)
Print widget class, css node name and address.

gtk/gtkwidget.c

index ab86789f0d6933090172a1ebf954b386f864f596..e5a857e76767b86a2207fdb1bfbfa3adc4ef4d0a 100644 (file)
@@ -4542,7 +4542,8 @@ gtk_widget_size_allocate (GtkWidget           *widget,
 
   if (real_allocation.width < 0 || real_allocation.height < 0)
     {
-      g_warning ("gtk_widget_size_allocate(): attempt to allocate widget with width %d and height %d",
+      g_warning ("gtk_widget_size_allocate(): attempt to allocate %s %s %p with width %d and height %d",
+                 G_OBJECT_TYPE_NAME (widget), gtk_css_node_get_name (priv->cssnode), widget,
                  real_allocation.width,
                  real_allocation.height);